package com.zhuangwei.log.aop.controller;

import cn.hutool.core.lang.Dict;
import cn.hutool.core.util.StrUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author LeviCoder
 * @create 2019-03-15 0:00
 */
@RestController
public class TestController {
    /**
     * 测试方法
     * @param who
     * @return
     */
    @GetMapping("/test")
    public Dict test(String who) {
        return Dict.create().set("who", StrUtil.isBlank(who) ? "me" : "who");
    }
}
